package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.daoman.Room;
import com.example.mapper.RoomMapper;
import com.example.service.RoomService;
import com.example.utils.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

//房间
@Component
public class RoomServiceImpl extends ServiceImpl<RoomMapper, Room> implements RoomService {

    @Autowired
    private RoomMapper roomMapper;

    //    根据楼层id查询房间以及人员
    @Override
    public Message getRoomBedsListByFloorId(int fid) {
        List<Room> mapperRoomBedsListByFloorId = roomMapper.getMapperRoomBedsListByFloorId(fid);
        return Message.out(200,"查询",mapperRoomBedsListByFloorId);
    }
}
